package com.mygdx.game.Stage.Fight;

import com.mygdx.game.Scenes.Character_green;
import com.mygdx.game.Scenes.Character_protagonist;

//可运行例子
public class ExampleBasicFight extends BasicFight {
    public ExampleBasicFight() {
        super();
        background = "start/background.jpg";
        init();//重载，必须写
    }

    //不同场景的不同敌人在这写
    @Override
    public void generateEnemies() {
        Character_green cg=new Character_green();
        cg.setPosition(1000,400);
        enemies.add(cg);

        Character_green cp = new Character_green();
        cp.setPosition(1200,400);
        enemies.add(cp);
    }

    //不同场景的主角在这写
    @Override
    public void generateMainActor() {
        mainActor = new Character_protagonist(this);
        mainActor.setPosition(0,400);
    }
}
